package com.treasure.mall.biz.mapstruct;

import com.treasure.mall.biz.entity.product.CategoryPO;
import com.treasure.mall.biz.vo.product.CategoryVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author wm
 */
@Mapper
public interface CategoryMapStrcut {
    CategoryMapStrcut INSTANCE = Mappers.getMapper(CategoryMapStrcut.class);


    CategoryVo po2vo(CategoryPO po);

    List<CategoryVo> po2vos(List<CategoryPO> po);
}